home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Queries / PLongQuery.h < prev    next >
C/C++ Source or Header  |  1996-07-12  |  782b  |  40 lines

  1. /*
  2.  *--- PLongQuery.h --------------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Thu, Oct 12, 1995 @ 10:06 PM by Paul Ferguson.
  5.  *
  6.  * Description:
  7.  *-------------------------------------------------------------------------
  8.  */
  9. #ifndef __PLongQuery__
  10. #define __PLongQuery__
  11.  
  12. #include "PQuery.h"
  13.  
  14. class PLongQuery
  15. {
  16.  
  17.     operator const long() const { return itsLong; }
  18.  
  19. protected:
  20.  
  21.     PLongQuery() { }
  22.     PLongQuery(ePMQuery op){  PQuery query(op, itsLong); }
  23.  
  24.     long itsLong;
  25. };
  26.  
  27.  
  28. template <ePMQuery QUERY>
  29. class PLongy : public PLongQuery
  30. {
  31. public:
  32.     PLongy() : PLongQuery(QUERY) { }
  33. };
  34.  
  35. typedef PLongy<pm_getstoryid>            PGetStoryID;
  36.  
  37. #endif
  38.  
  39. // end of PLongQuery.h
  40.